<?php
/**
 * Created by PhpStorm.
 * User: sunwu
 * Date: 2018/2/8
 * Time: 9:09
 */

namespace app\home\model;

class UserPaid extends Base{
    protected $pk='pk_user_paid_guid';
    protected $table='re_user_paid';
    public function resource(){
        return $this->hasOne('resource','PK_ResourceGuid','fk_resource_guid');
    }
}